package org.devocean.groupbuying.service;

import java.util.List;

import org.devocean.groupbuying.domain.Cart;
import org.devocean.groupbuying.domain.Customer;
import org.devocean.groupbuying.domain.Purchase;

public interface PurchaseService {

	Purchase getPurchaseById(Integer id);

	Purchase addOrUpdatePurchase(Purchase purchase);

	Purchase addPurchaseFromCart(Integer customerID, Cart cart);

	void removePurchase(Integer id);

	long countPurchases();
	
	List<Purchase> getAllPurchases();

	List<Purchase> PurchasesByCustomer(Integer customerID);

	List<Purchase> getPurchaseByCustomerAndLang(Customer customer,String lang);

	Long countPurchaseByCustomer(Customer customer);
	
	

}
